Skip to content

Add waitForAllTaskTermination#21

Closed
norio-nomura wants to merge 1 commit intoCarthage:upgrade-racfrom
norio-nomura:wait-for-all-task-termination
Closed

Add waitForAllTaskTermination#21
norio-nomura wants to merge 1 commit intoCarthage:upgrade-racfrom
norio-nomura:wait-for-all-task-termination

Conversation

@norio-nomura
Copy link
Copy Markdown
Contributor

Fix segmentation fault on Carthage termination.
Carthage/Carthage#474 (comment)

Fix segmentation fault on Carthage termination.
Carthage/Carthage#474 (comment)
Comment thread ReactiveTask/Task.swift
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be created within launchTask, since TaskDescriptions can be reused across multiple task invocations.

@jspahrsummers
Copy link
Copy Markdown
Member

Thanks for the pull request! ✨

I think I've misunderstood the purpose, so my comments above may not be valuable. If we need to wait for all tasks to complete before exiting on the main thread, I'd prefer to incorporate that into our SignalProducers somehow (instead of calling a special function before termination—which is easy to forget).

@norio-nomura
Copy link
Copy Markdown
Contributor Author

I did want to prove what happened and how can be fixed. 😄
I couldn't fix it with RAC way by using SignalProducer, so I wrote this instead.
Yes, it should be fixed on the way you prefer. 👍

@jspahrsummers
Copy link
Copy Markdown
Member

Ah, okay. I'm happy to give it a shot!

Thank you so much for finding the issue. 🙇⭐

@norio-nomura
Copy link
Copy Markdown
Contributor Author

I hope that all reported segmentation fault on termination are on this scenario and will be fixed. 🙏

@jspahrsummers
Copy link
Copy Markdown
Member

Should be fixed by #23. 🎉

Thanks again for finding that!

@norio-nomura norio-nomura deleted the wait-for-all-task-termination branch May 28, 2015 07:59
@norio-nomura
Copy link
Copy Markdown
Contributor Author

I'm sorry I couldn't write proper code for fix this by my self.

@robrix
Copy link
Copy Markdown

robrix commented May 28, 2015

@norio-nomura No apologies necessary, you contributed a great deal by diagnosing the issue 🙇

@norio-nomura
Copy link
Copy Markdown
Contributor Author

@robrix Thanks 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants